package com.baomidou.springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class DefaultView{
	@RequestMapping("/greeting") 
    public ModelAndView index() {
		String ok = "ok";
		System.out.println("ok:"+ok);
		ModelAndView mv = new ModelAndView("/greeting");
		mv.addObject("title","欢迎使用Thymeleaf!");
        return mv;
    }
}
